package drds.configuration.db.xml_mapping.dynamic_tag.sql_template;

import drds.configuration.db.xml_mapping.dynamic_tag.token_handler.PreparedParameterMapping;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * An actual sql String got from an {@link SqlTemplate} after having processed any dynamic content.
 * The sql may have sql placeholders "?" and an list (ordered) of an parameter_handler mappings
 */

public class Bind {
    @Setter
    @Getter
    private final String sql;
    @Setter
    @Getter
    private final List<PreparedParameterMapping> preparedParameterMappingList;
    @Setter
    @Getter
    private final Object parameterObject;


    public Bind(String sql, List<PreparedParameterMapping> preparedParameterMappingList, Object parameterObject) {
        this.sql = sql;
        this.preparedParameterMappingList = preparedParameterMappingList;
        this.parameterObject = parameterObject;

    }

}
